---
title: "Accessibility Checker Rule Help: WCAG20_Input_LabelBefore"
---
import "../../../styles/ToolHelp.scss"
import { CodeSnippet, Tag } from "carbon-components-react";

<div className="toolHelp">
<Row>
<Column colLg={16} colMd={8} colSm={4} className="toolHead">

### Label text is located after its associated text input or `<select>` element

<div id="locLevel"></div>

Text input and `<select>` elements must have the label before the element

</Column>
</Row>
<Row>
<Column colLg={11} colMd={5} colSm={4} className="toolMain">

### Why is this important?

Applications generally place the labels for text input and `<select>` elements before the element itself. Users expect this convention to be followed consistently. When labels are placed after the text input or `<select>` element, users can become disoriented.

<div id="locSnippet"></div>

### What to do

* Place the text of the label immediately before the text input or `<select>` element.

For example:

<CodeSnippet type="single" light={true}>&lt;label for="txt1"&gt;Field 1&lt;/label&gt; &lt;input type="text" id="txt1" name="txt1"&gt;</CodeSnippet>

</Column>
<Column colLg={5} colMd={3} colSm={4} className="toolLeft">

### About this requirement

[IBM 1.3.1 Info and Relationships](https://www.ibm.com/able/requirements/requirements/#1_3_1)
[IBM 4.1.2 Name, Role, Value](https://www.ibm.com/able/requirements/requirements/#4_1_2)

### Who does this affect?

* People using a screen reader, including blind, low vision and neurodivergent people
* People with low vision using screen magnification

</Column>
</Row>
</div>

export default ({ children, _frontmatter }) => (<React.Fragment>{children}</React.Fragment>)
